package top.zywork.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.zywork.dao.GraphicDAO;
import top.zywork.dos.GraphicDO;
import top.zywork.dto.GraphicDTO;
import top.zywork.service.AbstractBaseService;
import top.zywork.service.GraphicService;

import javax.annotation.PostConstruct;

/**
 * GraphicServiceImpl服务接口实现类<br/>
 *
 * 创建于2020-11-25<br/>
 *
 * @author http://ljyanimo.com 刘金泳
 * @version 1.0
 */
@Service(value = "graphicService")
public class GraphicServiceImpl extends AbstractBaseService implements GraphicService {

    private GraphicDAO graphicDAO;

    @Autowired
    public void setGraphicDAO(GraphicDAO graphicDAO) {
        super.setBaseDAO(graphicDAO);
        this.graphicDAO = graphicDAO;
    }

    @PostConstruct
    public void init() {
        super.init(GraphicDO.class, GraphicDTO.class);
    }
}